package com.bwie.conferenceroom.mapper;

import com.bwie.common.domain.MeetingScheduling;
import com.bwie.common.domain.Occupation;
import com.bwie.common.domain.response.MeetingSchedulingRes;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MeetingSchedulingMapper {
    /**
     * 获取会议室预约列表
     * @return
     */
    List<MeetingSchedulingRes> getMeetingSchedulingList();

    /**
     * 新增预定会议室
     * @param meetingScheduling
     */
    void addMeetingScheduling(MeetingScheduling meetingScheduling);

    /**
     * 新增会议室占用
     * @param occupation
     */
    void addOccupation(Occupation occupation);

    /**
     * 修改预定会议室
     * @param meetingScheduling
     */
    void updMeetingScheduling(MeetingScheduling meetingScheduling);

    /**
     * 删除预定会议室
     * @param id
     */
    void delMeetingScheduling(Integer id);
}
